package ooo;

public class TestDeo {
    public static void main(String[] args) {
        Aoo1 a=new Boo1(1);
        System.out.println(a.printStr());
        System.out.println(a.printStr("B"));
    }


}
class Boo1 extends Aoo1{
    Boo1(int a){
        System.out.println("Boo的有参数构造");
        System.out.println(a);
    }
    public String printStr(String input){
        return input;
    }
}

class Aoo1 {
    Aoo1(){
        System.out.println("AOO1的构造");

    }
    public String printStr(){
        System.out.println("A");
        return "a";
    }
    public String printStr(String s){
        System.out.println(s);
        return s;
    }
}
